package ${packages.dto};

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
<#if updateValidationImports?has_content>
<#list updateValidationImports as importItem>
import ${importItem};
</#list>
</#if>

/**
 * ${classInfo.className} 更新请求。
 */
@Data
public class ${classInfo.className}UpdateRequest implements Serializable {

<#assign idFieldName = options.primaryFieldName?default(classInfo.fieldList[0].fieldName)>
<#list classInfo.fieldList as field>
<#assign fieldDescription = (field.fieldComment?has_content)?then(field.fieldComment?trim?replace('\n', ' '), field.fieldName)>
<#if field.fieldName != idFieldName>
<#assign annotations = validationHelper.resolveAnnotations(field, false)>
<#if annotations?has_content>
<#list annotations as annotation>
    ${annotation}
</#list>
</#if>
    @Schema(description = "${fieldDescription}")
    private ${field.fieldClass!"String"} ${field.fieldName};
</#if>
</#list>
}
